package com.itheima.ioTest_2;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class testUnicod2 {
    public static void main(String[] args) throws IOException {
        FileReader fr=new FileReader("IO\\a.txt");
       /* int len;
        while ((len=fr.read())!=-1){
            System.out.println((char) len);
        }
        fr.close();*/
        char [] by=new char[1024];
        int len;
        while ((len=fr.read(by))!=-1){
            System.out.println(new String(by,0,len));
        }
        fr.close();
    }

}
